package com.duan.service.user;

import com.duan.pojo.User;

import java.util.List;

public interface UserService {
    //登录
    public User loginService(String userCode, String password);

    //修改密码
    public boolean updatePwd(int id, String password);

    //查询记录数
    public int getUserCount(String userName, int userRole);

    //根据条件查询用户列表
    public List<User> getUserList(String userName, int userRole, int currentPageNo, int pageSize);

    //增加用户
    public boolean insertUser(User user);

    //查询指定userCode的用户
    public User selectUserCodeExist(String userCode);

    //删除用户
    public boolean deleteUser(int userid);

    //查询指定id用户信息
    public User selectUserById(int userid);

    //修改用户信息
    public boolean modifyUser(User user);

}
